﻿@model CommerceOne.Models.LoginViewModel
           
@{ ViewBag.Id = "authentication"; }

<div id="center_column" class="center_column">
<!-- Breadcrumb -->
     @Html.Partial("_Breadcrumb", @Model.Breadcrumb)
<!-- /Breadcrumb -->

<h1>Log in</h1>

<!-- Steps -->
    @Html.Partial("_CheckoutStep", @Model.Step)
<!-- /Steps -->

@Html.Partial("_ErrorViewer", @Model.Errors)

@using (Html.BeginForm("Login", "Authentication", FormMethod.Post, new { @class = "std", id = "create-account_form", mode="SubmitCreate" }))
{
     <fieldset>
        <h3>Create your account</h3>
        <h4>Enter your e-mail address to create an account.</h4>
        <p class="text">
            <label for="email_create">E-mail address</label>
            @Html.TextBoxFor(x => x.User, new { id = "email_create", name = "email_create", @class= "account_input"})
            @Html.ValidationMessageFor(x => x.User)
        </p>
        <p class="submit">
            <input type="hidden" class="hidden" name="back" value="my-account.php" />
            <input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="Create your account" />
            <input type="hidden" class="hidden" name="SubmitCreate" value="Create your account" />
        </p>
    </fieldset>
}
@*<form action="http://livedemo00.template-help.com/prestashop_34916/authentication.php" method="post" id="create-account_form" class="std">
    <fieldset>
        <h3>Create your account</h3>
        <h4>Enter your e-mail address to create an account.</h4>
        <p class="text">
            <label for="email_create">E-mail address</label>
            <input type="text" id="email_create" name="email_create" value="" class="account_input" />
        </p>
        <p class="submit">
            <input type="hidden" class="hidden" name="back" value="my-account.php" />
            <input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="Create your account" />
            <input type="hidden" class="hidden" name="SubmitCreate" value="Create your account" />
        </p>
    </fieldset>
    </form>*@
    @using (Html.BeginForm("Login", "Authentication", FormMethod.Post, new { @class = "std", id = "login_form" }))
    {
        <fieldset>
            <h3>Already registered ?</h3>
            <p class="text">
                <label for="email">E-mail address</label>
                @Html.TextBoxFor(x => x.User, new { id = "email", name = "email", @class = "account_input" })
                @Html.ValidationMessageFor(x => x.User)
            </p>
            <p class="text">
                <label for="passwd">Password</label>
                @Html.PasswordFor(x => x.Password, new { id = "passwd", name = "passwd", @class = "account_input" })
                @Html.ValidationMessageFor(x => x.Password)
            </p>
            <p class="submit">
                <input type="hidden" class="hidden" name="back" value="my-account.php" />
                <input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="Log in" />
            </p>
            <p class="lost_password">
                <a href="http://livedemo00.template-help.com/prestashop_34916/password.php">Forgot your
                    password?</a></p>
        </fieldset>
    }

    @*<form action="http://livedemo00.template-help.com/prestashop_34916/authentication.php" method="post" id="login_form" class="std">
    <fieldset>
        <h3>Already registered ?</h3>
        <p class="text">
            <label for="email">E-mail address</label>
            <input type="text" id="email" name="email" value="anbk2007@yahoo.com" class="account_input" />
        </p>
        <p class="text">
            <label for="passwd">Password</label>
            <input type="password" id="passwd" name="passwd" value="12345678" class="account_input" />
        </p>
        <p class="submit">
            <input type="hidden" class="hidden" name="back" value="my-account.php" />
            <input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="Log in" />
        </p>
        <p class="lost_password">
            <a href="http://livedemo00.template-help.com/prestashop_34916/password.php">Forgot your password?</a></p>
    </fieldset>
    </form>*@

    <div class="clearblock"></div>
</div>
